var n=Object.defineProperty;var N=(r,t,e)=>t in r?n(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var o=(r,t,e)=>(N(r,typeof t!="symbol"?t+"":t,e),e);import{d3 as E,as as i,cL as l}from"./index-68beeb37.js";import{M as a}from"./MapExt-1de51b77.js";import{SFDBSrc as s}from"./SFDBSrc-b5a81cac.js";import"./MapAttr-b9cf931d.js";import"./Events-141c34ea.js";import"./SFTable-39daafd0.js";import"./BSEntity-04e1e554.js";class B extends E{constructor(e){super("TS.MapExt.DtlImpEn1");o(this,"NoteTag",` 
 
  #### 帮助

   - 该选项可以为空,在右上角的列表里查询或点树树干的数据源出现的列表,需要用中文显示列头..
   - 不为空时，设置几个字段则列表里面显示几个字段
   - 格式为:
   - 例如: No=编号,Name=名称,Addr=地址,Tel=电话,Email=邮件
   
   `);o(this,"NoteTag1",` 
 
  #### 帮助
   - 该设置对table查询有效,(可以为空)：日期的默认值是JS函数表达式.
   - SQL格式为:
   - $Para=Dept#Label=所在班级#ListSQL=Select No,Name FROM Demo_BanJi 
   - $Para=XB#Label=性别#EnumKey=XB
   - $Para=DTFrom#Label=注册日期从#DefVal=(new Date( (new Date().setDate(-30 + new Date().getDate()))))
   - $Para=DTTo#Label=到#DefVal=(new Date())
   - URL格式为:
   - $Para=Dept#Label=所在班级#ListURL=/DataUser/Handler.ashx?xxx=sss 
   - 执行CCFromRef.js返回JSON格式为:
   - $Para=Dept#Label=所在班级#ListFuncName=MyFunc 
    
    `);o(this,"NoteTag2",` 
 
  #### 帮助
 
 
   -设置一个查询的SQL语句，必须返回No,Name两个列。
   - 该参数支持ccbpm表达式,比如:SELECT No, Name FROM WF_Emp WHERE FK_Dept='@WebUser.DeptNo'
   - 必须有：@PageCount @PageSize @Key 三个参数,分别标识:@PageCount =第几页, @PageSize=每页大小. @Key=关键字
   - 比如For SQLServer: SELECT TOP @PageSize * FROM ( SELECT row_number() over(order by
      t.No) as rownumber,No,Name,Tel,Email FROM Demo_Student WHERE Name LIKE '%@Key%'
      ) A WHERE rownumber > @PageCount 
   - 总条数: SELECT COUNT(no) FROM Demo_Student WHERE (Name LIKE '%@Key%' OR No LIKE '%@Key%')
      AND FK_BanJi=@FK_BanJi ANND XB=@XB 
   - 比如For Oracle: SELECT No,Name,Email,Tel FROM Demo_Student WHERE (Name LIKE '%@Key%'
       OR No LIKE '%@Key%') AND FK_BanJi=@FK_BanJi ANND XB=@XB 
   - 比如For MySQL: SELECT No,Name,Email,Tel FROM Demo_Student WHERE (Name LIKE '%@Key%'
       OR No LIKE '%@Key%') AND FK_BanJi=@FK_BanJi ANND XB=@XB 
   - 支持ccbpm的表达式,比如:@WebUser.DeptNo , @FieldName @WebUser.OrgNo
    
    `);o(this,"NoteTag3",` 
 
  #### 帮助
 
 
   - 比如For SQLServer: SELECT count(No) FROM Demo_Student WHERE (Name LIKE '%@Key%' OR
     No LIKE '%@Key%') AND FK_BanJi=@FK_BanJi ANND XB=@XB 
   - 比如For Oracle: SELECT count(No) FROM Demo_Student WHERE (Name LIKE '%@Key%' OR No
     LIKE '%@Key%') AND FK_BanJi=@FK_BanJi ANND XB=@XB 
   - 比如For MySQL: SELECT count(No) FROM Demo_Student WHERE (Name LIKE '%@Key%' OR No
     LIKE '%@Key%') AND FK_BanJi=@FK_BanJi ANND XB=@XB 
    `);o(this,"NoteTag4",` 
 
  #### 帮助
 
   - 主键不为空，SQL查询的列表设置主键时，不会重复导入该数据
   - 主键为空时，则为选择的全部导入，不过滤已经导入的数据

  `);e&&(this.MyPK=e)}get HisUAC(){const e=new i;return e.IsDelete=!0,e.IsUpdate=!0,e.IsInsert=!0,e}get EnMap(){const e=new l("Sys_MapExt","从表导入");return e.AddGroupAttr("数据来源"),e.AddMyPK(),e.AddDDLEntities(a.FK_DBSrc,"local","数据源",new s,!0,null,!1),e.AddTBString(a.Tag1,null,"查询条件设置",!0,!1,0,50,200,!0,this.NoteTag1),e.AddTBString(a.Tag2,null,"数据源 ",!0,!1,0,50,200,!0,this.NoteTag2),e.AddTBString(a.Tag3,null,"总条数",!0,!1,0,50,200,!0,this.NoteTag3),e.AddTBString(a.Tag,null,"数据列名与中文意思对照",!0,!1,0,50,200,!0,this.NoteTag),e.AddTBString(a.Tag4,null,"设定导入数据列表的主键",!0,!1,0,50,200,!0,this.NoteTag4),e.AddGroupAttr("基本信息"),e.AddTBString("Title",null,"标题",!0,!1,0,50,200,!0),e.AddTBString("SearchTip",null,"搜索提示",!0,!1,0,50,200,!0,this.NoteSearchTip),e.AddTBInt(a.H,500,"弹窗高度",!0,!1),e.AddTBInt(a.W,800,"弹窗宽度",!0,!1),e.AddTBAtParas(4e3),e.ParaFields="Title,SearchTip",this._enMap=e,this._enMap}}export{B as DtlImpEn1};
